<template>
  <div>
    <input type="text" v-model="loginname">
    <input type="text" v-model="password">
    <button @click="zhuce">注册</button>
  </div>
</template>

<script>
import { goRegister } from '@/apis/wode';
export default {
  data() {
    return {
      loginname: '18354992607',
      password: '123456'
    }
  },

  methods: {
    zhuce() {
      goRegister({
        loginname: this.loginname,
        password: this.password
      }).then(res => {
        console.log(res);
      }).catch(function (error) {
        console.log(error);
      });
    }
  }
}
</script>

<style lang="less" scoped></style>